package org.chunchu.todo.mvp.impl;

import javax.inject.Singleton;

import org.chunchu.todo.model.Task;
import org.mvp.AbstractPresenter;

@Singleton
public class TaskPresenter extends AbstractPresenter<TaskView> {

	@Override
	public void initializeWith(TaskView activity) {
		super.initializeWith(activity);
	}

	public void setCurrentTask(Task task) {
		cleanTask();
		if (task != null)
			getActivity().setTask(task);
	}

	public void cleanTask() {
		getActivity().clean();
	}

}
